package com.zjr.system.domain.question.dto;

import com.zjr.common.core.domain.BaseEntity;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Range;

@Getter
@Setter
public class QuestionAddDTO {
    @NotBlank(message = "标题不能为空")
    private String title;
    @Range(min = 1, max = 3, message = "范围不在1~3之间")
    private Integer difficulty;
    @Min(value = 1, message = "时间限制不能为空")
    private Long timeLimit;
    @Min(value = 1, message = "空间限制不能为空")
    private Long spaceLimit;
    @NotBlank(message = "正文不能为空")
    private String content;
    @NotBlank(message = "样例不能为空")
    private String questionCase;
    @NotBlank(message = "默认代码块不能为空")
    private String defaultCode;
    @NotBlank(message = "main方法不能为空")
    private String mainFuc;
}
